package com.community.body.mapper;

import com.community.body.domain.ZyComplaintSuggest;
import com.community.body.dto.ComplaintSuggestDTO;
import com.community.body.vo.EchartsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 投诉建议 Mapper接口
 * 
 * @author community
 * @date 2024-04-16
 */
public interface ZyComplaintSuggestMapper 
{
    /**
     * 查询投诉建议 
     * 
     * @param complaintSuggestId 投诉建议 主键
     * @return 投诉建议 
     */
    public ZyComplaintSuggest selectZyComplaintSuggestByComplaintSuggestId(Long complaintSuggestId);

    /**
     * 查询投诉建议 列表
     * 
     * @param complaintSuggestDTO 投诉建议
     * @return 投诉建议 集合
     */
    public List<ComplaintSuggestDTO> selectZyComplaintSuggestList(ComplaintSuggestDTO complaintSuggestDTO);

    public List<ComplaintSuggestDTO> selectZyComplaintSuggestList1(ZyComplaintSuggest zyComplaintSuggest);

    /**
     * 新增投诉建议 
     * 
     * @param zyComplaintSuggest 投诉建议 
     * @return 结果
     */
    public int insertZyComplaintSuggest(ZyComplaintSuggest zyComplaintSuggest);

    /**
     * 修改投诉建议 
     * 
     * @param zyComplaintSuggest 投诉建议 
     * @return 结果
     */
    public int updateZyComplaintSuggest(ZyComplaintSuggest zyComplaintSuggest);

    /**
     * 删除投诉建议 
     * 
     * @param complaintSuggestId 投诉建议 主键
     * @return 结果
     */
    public int deleteZyComplaintSuggestByComplaintSuggestId(Long complaintSuggestId);

    /**
     * 批量删除投诉建议 
     * 
     * @param complaintSuggestIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZyComplaintSuggestByComplaintSuggestIds(Long[] complaintSuggestIds);

    List<EchartsVo> getStatusList(ComplaintSuggestDTO complaintSuggestDTO);

    List<EchartsVo> getStatusList1(@Param("longArray") Long[] longArray);

}
